import request from '@/utils/request'

//应用插件控制
export function getSuperPower (params) {
  return request({
    url: 'channel/config/get-super-power',
    method: 'get',
    params
  })
}
//配送费活动列表
export function deliveryList (params) {
  return request({
    url: 'channel/activity/delivery-list',
    method: 'get',
    params
  })
}
//保存配送费满减
export function saveDeliver (data) {
  return request({
    url: 'channel/activity/save-delivery',
    method: 'post',
    data
  })
}
//查看配送费满减
export function getsaveDeliver (params) {
  return request({
    url: 'channel/activity/save-delivery',
    method: 'get',
    params
  })
}
//修改配送活动
export function modifyDelivery (data) {
  return request({
    url: 'channel/activity/modify-delivery',
    method: 'post',
    data
  })
}
//新客立减列表
export function newReductionList (params) {
  return request({
    url: 'channel/activity/new-reduction-list',
    method: 'get',
    params
  })
}
//保存新客活动
export function saveNewReduction (data) {
  return request({
    url: 'channel/activity/save-new-reduction',
    method: 'post',
    data
  })
}
//查看编辑新客活动
export function getsaveNewReduction (params) {
  return request({
    url: 'channel/activity/save-new-reduction',
    method: 'get',
    params
  })
}
//修改新客活动
export function modifyNewReduction (data) {
  return request({
    url: 'channel/activity/modify-new-reduction',
    method: 'post',
    data
  })
}
//满减活动列表
export function reduceList (params) {
  return request({
    url: 'channel/activity/reduce-list',
    method: 'get',
    params
  })
}
//保存满减活动
export function postsSaveReduce (data) {
  return request({
    url: 'channel/activity/save-reduce',
    method: 'post',
    data
  })
}
//查看编辑满减活动
export function getsaveReduce (params) {
  return request({
    url: 'channel/activity/save-reduce',
    method: 'get',
    params
  })
}
//修改满减活动
export function modifyReduce (data) {
  return request({
    url: 'channel/activity/modify-reduce',
    method: 'post',
    data
  })
}
//直播列表
export function liveList (params) {
  return request({
    url: 'channel/activity/live-list',
    method: 'get',
    params
  })
}
//直播根据商品ID查找商品
export function findGood (data) {
  return request({
    url: 'channel/live/find-goods',
    method: 'post',
    data
  })
}
//添加直播商品
export function addGoods (data) {
  return request({
    url: 'channel/live/add-goods',
    method: 'post',
    data
  })
}
//直播商品列表
export function goodList (params) {
  return request({
    url: 'channel/live/goods-list',
    method: 'get',
    params
  })
}
//直播商品详情
export function goodsDetails (params) {
  return request({
    url: 'channel/live/goods-details',
    method: 'get',
    params
  })
}
//删除直播商品
export function delGoods (data) {
  return request({
    url: 'channel/live/del-goods',
    method: 'post',
    data
  })
}
//添加直播间
export function creatLive (data) {
  return request({
    url: 'channel/live/created-live',
    method: 'post',
    data
  })
}
//获取图片mediaId
export function getMediaid (data) {
  return request({
    url: 'channel/live/get-mediaid',
    method: 'post',
    data
  })
}
//优惠券列表
export function couponList (params) {
  return request({
    url: 'channel/activity/coupon-list',
    method: 'get',
    params
  })
}

//修改优惠券
export function modifyCoupon (data) {
  return request({
    url: 'channel/activity/modify-coupon',
    method: 'post',
    data
  })
}

//保存优惠券提交数据
export function postSaveCoupon (data) {
  return request({
    url: 'channel/activity/save-coupon',
    method: 'post',
    data
  })
}
//get 查看优惠券数据
export function getSaveCoupon (params) {
  return request({
    url: 'channel/activity/save-coupon',
    method: 'get',
    params
  })
}

// 优惠券列表
export function vip_couponList (params) {
  return request({
    url: 'channel/pay-vip/coupon-list',
    method: 'get',
    params
  })
}

//修改优惠券
export function vip_saveCoupon (data) {
  return request({
    url: 'channel/pay-vip/modify-coupon',
    method: 'post',
    data
  })
}

//保存优惠券提交数据
export function vip_submitCoupon (data) {
  return request({
    url: 'channel/pay-vip/save-coupon',
    method: 'post',
    data
  })
}

//get 查看优惠券数据
export function vip_getCouponData (params) {
  return request({
    url: 'channel/pay-vip/save-coupon',
    method: 'get',
    params
  })
}

//get 查找商品
export function selectGoods (data) {
  return request({
    url: 'channel/activity/select-goods',
    method: 'post',
    data
  })
}
//get 商品分类
export function selectGoodsType (params) {
  return request({
    url: 'channel/activity/select-goods-type',
    method: 'get',
    params
  })
}
//满赠活动列表
export function giveList (params) {
  return request({
    url: 'channel/activity/give-list',
    method: 'get',
    params
  })
}
//满赠查看数据
export function getSaveGive (params) {
  return request({
    url: 'channel/activity/save-give',
    method: 'get',
    params
  })
}
//保存满赠post提交数据
export function postSaveGive (data) {
  return request({
    url: 'channel/activity/save-give',
    method: 'post',
    data
  })
}
//修改满赠状态
export function modifyGive (data) {
  return request({
    url: 'channel/activity/modify-give',
    method: 'post',
    data
  })
}
//签到统计
export function signCensus (params) {
  return request({
    url: 'channel/sign-in/sign-census',
    method: 'get',
    params
  })
}
//签到列表
export function signList (params) {
  return request({
    url: 'channel/sign-in/sign-list',
    method: 'get',
    params
  })
}
//积分商品分类列表
export function goodsType (params) {
  return request({
    url: 'channel/integral-shop/goods-type',
    method: 'get',
    params
  })
}
//查看积分商品分类
export function getSaveGoodsType (params) {
  return request({
    url: 'channel/integral-shop/save-goods-type',
    method: 'get',
    params
  })
}
//保存积分商品分类
export function postSaveGoodsType (data) {
  return request({
    url: 'channel/integral-shop/save-goods-type',
    method: 'post',
    data
  })
}
//修改积分分类状态
export function modifyGoodsType (data) {
  return request({
    url: 'channel/integral-shop/modify-goods-type',
    method: 'post',
    data
  })
}
//积分商品列表
export function goodsList (params) {
  return request({
    url: 'channel/integral-shop/goods-list',
    method: 'get',
    params
  })
}
//查看积分商品
export function getSaveGoods (params) {
  return request({
    url: 'channel/integral-shop/save-goods',
    method: 'get',
    params
  })
}
//保存积分保存商品
export function postsaveGoods (data) {
  return request({
    url: 'channel/integral-shop/save-goods',
    method: 'post',
    data
  })
}
//修改商品状态
export function modifyGoods (data) {
  return request({
    url: 'channel/integral-shop/modify-goods',
    method: 'post',
    data
  })
}
//自提地址列表
export function selfList (params) {
  return request({
    url: 'channel/integral-shop/self-list',
    method: 'get',
    params
  })
}
//查看编辑自提地址
export function getSaveSelf (params) {
  return request({
    url: 'channel/integral-shop/save-self',
    method: 'get',
    params
  })
}
//保存自提地址
export function postSaveSelf (data) {
  return request({
    url: 'channel/integral-shop/save-self',
    method: 'post',
    data
  })
}
//修改自提状态
export function modifySelf (data) {
  return request({
    url: 'channel/integral-shop/modify-self',
    method: 'post',
    data
  })
}
//订单兑换记录
export function orderList (params) {
  return request({
    url: 'channel/integral-shop/order-list',
    method: 'get',
    params
  })
}
//积分订单打印
export function integralPrint (params) {
  return request({
    url: 'channel/integral-shop/integral-print',
    method: 'get',
    params
  })
}
//积分商城操作订单
export function modifyOrder (data) {
  return request({
    url: 'channel/integral-shop/modify-order',
    method: 'post',
    data
  })
}

//新客专享列表
export function newList (params) {
  return request({
    url: 'channel/activity/new-list',
    method: 'get',
    params
  })
}
//查看新客专享
export function getSaveNew (params) {
  return request({
    url: 'channel/activity/save-new',
    method: 'get',
    params
  })
}
//保存新客专享
export function postSaveNew (data) {
  return request({
    url: 'channel/activity/save-new',
    method: 'post',
    data
  })
}
//修改新客专享
export function modifyNew (data) {
  return request({
    url: 'channel/activity/modify-new',
    method: 'post',
    data
  })
}
//下单返红包列表
export function grantCouponList (params) {
  return request({
    url: 'channel/activity/grant-coupon-list',
    method: 'get',
    params
  })
}
//查看下单返红包
export function getSaveGrantCoupon (params) {
  return request({
    url: 'channel/activity/save-grant-coupon',
    method: 'get',
    params
  })
}
//保存下单返红包
export function postSaveGrantCoupon (data) {
  return request({
    url: 'channel/activity/save-grant-coupon',
    method: 'post',
    data
  })
}
//修改下单返红包
export function modifyGrantCoupon (data) {
  return request({
    url: 'channel/activity/modify-grant-coupon',
    method: 'post',
    data
  })
}
//查看会员标签
export function getLabel (params) {
  return request({
    url: 'channel/activity/get-label',
    method: 'get',
    params
  })
}

//支付有礼列表
export function payPolitely (params) {
  return request({
    url: 'channel/activity/pay-politely',
    method: 'get',
    params
  })
}
//查看支付有礼
export function getSavePayPolitely (params) {
  return request({
    url: 'channel/activity/save-pay-politely',
    method: 'get',
    params
  })
}
//保存支付有礼
export function postSavePayPolitely (data) {
  return request({
    url: 'channel/activity/save-pay-politely',
    method: 'post',
    data
  })
}
//修改支付有礼
export function modifyPayPolitely (data) {
  return request({
    url: 'channel/activity/modify-pay-politely',
    method: 'post',
    data
  })
}
//收藏申请列表
export function collection (params) {
  return request({
    url: 'channel/activity/collection',
    method: 'get',
    params
  })
}
//审核收藏
export function modifyCollection (data) {
  return request({
    url: 'channel/activity/modify-collection',
    method: 'post',
    data
  })
}

//超级换购列表
export function changePay (params) {
  return request({
    url: 'channel/activity/change-pay',
    method: 'get',
    params
  })
}
//查看超级换购
export function getSaveChangePay (params) {
  return request({
    url: 'channel/activity/save-change-pay',
    method: 'get',
    params
  })
}
//保存超级换购
export function postSaveChangePay (data) {
  return request({
    url: 'channel/activity/save-change-pay',
    method: 'post',
    data
  })
}
//修改超级换购
export function modifyChangePay (data) {
  return request({
    url: 'channel/activity/modify-change-pay',
    method: 'post',
    data
  })
}

//弹窗优惠券列表
export function windowCoupon (params) {
  return request({
    url: 'channel/activity/window-coupon',
    method: 'get',
    params
  })
}
//查看弹窗优惠券
export function getSaveWindowCoupon (params) {
  return request({
    url: 'channel/activity/save-window-coupon',
    method: 'get',
    params
  })
}
//保存弹窗优惠券
export function postSaveWindowCoupon (data) {
  return request({
    url: 'channel/activity/save-window-coupon',
    method: 'post',
    data
  })
}
//修改弹窗优惠券
export function modifyWindowCoupon (data) {
  return request({
    url: 'channel/activity/modify-window-coupon',
    method: 'post',
    data
  })
}

//生日有礼
export function birthday (params) {
  return request({
    url: 'channel/activity/birthday',
    method: 'get',
    params
  })
}
//查看生日有礼
export function getSaveBirthday (params) {
  return request({
    url: 'channel/activity/save-birthday',
    method: 'get',
    params
  })
}
//保存生日有礼
export function postSaveBirthday (data) {
  return request({
    url: 'channel/activity/save-birthday',
    method: 'post',
    data
  })
}
//修改生日有礼
export function modifyBirthday (data) {
  return request({
    url: 'channel/activity/modify-birthday',
    method: 'post',
    data
  })
}

//发券宝
export function issueCoupons (params) {
  return request({
    url: 'channel/activity/issue-coupons',
    method: 'get',
    params
  })
}
//查看发券宝
export function getSaveIssueCoupons (params) {
  return request({
    url: 'channel/activity/save-issue-coupons',
    method: 'get',
    params
  })
}
//查看发券宝
export function getVipSurvey (params) {
  return request({
    url: 'channel/pay-vip/vip-statistics',
    method: 'get',
    params
  })
}
//保存发券宝
export function postSaveIssueCoupons (data) {
  return request({
    url: 'channel/activity/save-issue-coupons',
    method: 'post',
    data
  })
}
//修改发券宝
export function modifyIssueCoupons (data) {
  return request({
    url: 'channel/activity/modify-issue-coupons',
    method: 'post',
    data
  })
}
//券包列表
export function rollbagList (params) {
  return request({
    url: 'channel/roll-bag/roll-bag-list',
    method: 'get',
    params
  })
}
//保存券包
export function rollbagSave (data) {
  return request({
    url: 'channel/roll-bag/save-roll-bag',
    method: 'post',
    data
  })
}
//查看券包
export function rollbagInfo (params) {
  return request({
    url: 'channel/roll-bag/save-roll-bag',
    method: 'get',
    params
  })
}
//修改券包
export function rollbagModify (data) {
  return request({
    url: 'channel/roll-bag/modify-roll-bag',
    method: 'post',
    data
  })
}

//兑换券列表
export function exchangeCode (params) {
  return request({
    url: 'channel/activity/exchange-code',
    method: 'get',
    params
  })
}
//查看兑换券
export function getSaveExchangeCode (params) {
  return request({
    url: 'channel/activity/save-exchange-code',
    method: 'get',
    params
  })
}
//保存兑换券
export function postSaveExchangeCode (data) {
  return request({
    url: 'channel/activity/save-exchange-code',
    method: 'post',
    data
  })
}
//修改兑换券
export function modifyExchangeCode (data) {
  return request({
    url: 'channel/activity/modify-exchange-code',
    method: 'post',
    data
  })
}
//兑换券列表
export function codeList (params) {
  return request({
    url: 'channel/activity/code-list',
    method: 'get',
    params
  })
}

//云喇叭列表
export function voiceList (params) {
  return request({
    url: 'channel/voice/voice-list',
    method: 'get',
    params
  })
}
//保存云喇叭
export function voiceSave (data) {
  return request({
    url: 'channel/voice/voice-save',
    method: 'post',
    data
  })
}
//编辑云喇叭
export function getVoiceSave (params) {
  return request({
    url: 'channel/voice/voice-save',
    method: 'get',
    params
  })
}
//删除云喇叭
export function voiceDel (data) {
  return request({
    url: 'channel/voice/voice-del',
    method: 'post',
    data
  })
}
//试听云喇叭
export function audition (params) {
  return request({
    url: 'channel/voice/audition',
    method: 'get',
    params
  })
}
//老带新活动列表
export function activityList (params) {
  return request({
    url: 'channel/old-with-new/activity-list',
    method: 'get',
    params
  })
}
//查看活动
export function getSaveActivity (params) {
  return request({
    url: 'channel/old-with-new/save-activity',
    method: 'get',
    params
  })
}
//保存活动
export function postSaveActivity (data) {
  return request({
    url: 'channel/old-with-new/save-activity',
    method: 'post',
    data
  })
}
//修改活动
export function modifyActivity (data) {
  return request({
    url: 'channel/old-with-new/modify-activity',
    method: 'post',
    data
  })
}
//邀新记录
export function invitation (params) {
  return request({
    url: 'channel/old-with-new/invitation',
    method: 'get',
    params
  })
}
//奖励明细
export function awardDetails (params) {
  return request({
    url: 'channel/old-with-new/award-details',
    method: 'get',
    params
  })
}
//查看邀请的人
export function invitationList (params) {
  return request({
    url: 'channel/old-with-new/invitation-list',
    method: 'get',
    params
  })
}
//查看提现列表
export function withdrawalList (params) {
  return request({
    url: 'channel/member/withdrawal-list',
    method: 'get',
    params
  })
}
//提现审核
export function modifyWithdrawal (data) {
  return request({
    url: 'channel/member/modify-withdrawal',
    method: 'post',
    data
  })
}
//分销列表
export function distributionList (params) {
  return request({
    url: 'channel/distribution/distribution-list',
    method: 'get',
    params
  })
}
//分销审核
export function modifyDistribution (data) {
  return request({
    url: 'channel/distribution/modify-distribution',
    method: 'post',
    data
  })
}
//分销订单
export function distributionOrder (params) {
  return request({
    url: 'channel/distribution/distribution-order',
    method: 'get',
    params
  })
}
//查看下级
export function getOffline (params) {
  return request({
    url: 'channel/distribution/get-offline',
    method: 'get',
    params
  })
}
//提现统计
export function withdrawalStatistics (params) {
  return request({
    url: 'channel/distribution/withdrawal-statistics',
    method: 'get',
    params
  })
}
//分销统计
export function distributionIndex (params) {
  return request({
    url: 'channel/distribution/index',
    method: 'get',
    params
  })
}
//查看授权
export function authInfo (params) {
  return request({
    url: 'channel/config/auth-info',
    method: 'get',
    params
  })
}
//授权
export function sendAuth (data) {
  return request({
    url: 'channel/config/send-auth',
    method: 'post',
    data
  })
}
//桌位类型
export function typeList (params) {
  return request({
    url: 'channel/queuing/type-list',
    method: 'get',
    params
  })
}
//保存桌位类型
export function saveType (data) {
  return request({
    url: 'channel/queuing/save-type',
    method: 'post',
    data
  })
}
export function getSaveType (params) {
  return request({
    url: 'channel/queuing/save-type',
    method: 'get',
    params
  })
}
//修改桌位类型
export function modifyType(data) {
  return request({
    url: 'channel/queuing/modify-type',
    method: 'post',
    data
  })
}
export function queuingList(params) {
  return request({
    url: 'channel/queuing/queuing-list',
    method: 'get',
    params
  })
}
export function modifyQueuing(data) {
  return request({
    url: 'channel/queuing/modify-queuing',
    method: 'post',
    data
  })
}
export function callService(data) {
  return request({
    url: 'channel/queuing/call-service',
    method: 'post',
    data
  })
}
export function queuingScreen(params) {
  return request({
    url: 'channel/screen/queuing-screen',
    method: 'get',
    params
  })
}
//酒牌名称列表
export function brandList (params) {
  return request({
    url: 'channel/wine-storage/brand-list',
    method: 'get',
    params
  })
}
//保存酒牌名称
export function saveBrand (data) {
  return request({
    url: 'channel/wine-storage/save-brand',
    method: 'post',
    data
  })
}
//存取列表
export function brandOrderList(params) {
  return request({
    url: 'channel/wine-storage/order-list',
    method: 'get',
    params
  })
}
//审核寄存信息
export function operatStorage (data) {
  return request({
    url: 'channel/wine-storage/operation-storage',
    method: 'post',
    data
  })
}
//修改酒牌
export function modifyBrand (data) {
  return request({
    url: 'channel/wine-storage/modify-brand',
    method: 'post',
    data
  })
}
export function yyOrder(params) {
  return request({
    url: 'channel/reserve/order',
    method: 'get',
    params
  })
}
export function yyOrderList(params) {
  return request({
    url: 'channel/reserve/order-list',
    method: 'get',
    params
  })
}
export function operationAppointment(data) {
  return request({
    url: 'channel/reserve/operation-appointment',
    method: 'post',
    data
  })
}
export function dividendList(params) {
  return request({
    url: 'channel/dividend/dividend-list',
    method: 'get',
    params
  })
}
export function saveDividend(data) {
  return request({
    url: 'channel/dividend/save-dividend',
    method: 'post',
    data
  })
}
export function getSaveDividend(params) {
  return request({
    url: 'channel/dividend/save-dividend',
    method: 'get',
    params
  })
}
export function modifyDividend(data) {
  return request({
    url: 'channel/dividend/modify-dividend',
    method: 'post',
    data
  })
}
export function receiveList(params) {
  return request({
    url: 'channel/dividend/receive-list',
    method: 'get',
    params
  })
}
export function joinList(params) {
  return request({
    url: 'channel/dividend/join-list',
    method: 'get',
    params
  })
}
export function collectCouponList(params) {
  return request({
    url: 'channel/activity/collect-coupon-list',
    method: 'get',
    params
  })
}
export function getCollectCouponList(params) {
  return request({
    url: 'channel/activity/save-collect-coupon',
    method: 'get',
    params
  })
}
export function saveCollectCoupon(data) {
  return request({
    url: 'channel/activity/save-collect-coupon',
    method: 'post',
    data
  })
}
export function modifyCollectCoupon(data) {
  return request({
    url: 'channel/activity/modify-collect-coupon',
    method: 'post',
    data
  })
}
export function getCreateUrl(params) {
  return request({
    url: 'channel/config/create-url',
    method: 'get',
    params
  })
}
export function postCreateUrl(data) {
  return request({
    url: 'channel/config/create-url',
    method: 'post',
    data
  })
}

export function getCategoryList(params) {
  return request({
    url: 'channel/category/get-category-list',
    method: 'get',
    params
  })
}

